Created a Permutation Function in the Recursion package. Closed the issue #7322#7412
Created a Permutation Function in the Recursion package. Closed the issue #7322#7412trynafind-sumanyu wants to merge 8 commits intoTheAlgorithms:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7412 +/- ##
============================================
+ Coverage 79.54% 79.55% +0.01%
- Complexity 7178 7186 +8
============================================
Files 798 799 +1
Lines 23467 23492 +25
Branches 4617 4621 +4
============================================
+ Hits 18666 18690 +24
- Misses 4055 4056 +1
Partials 746 746 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@trynafind-sumanyu there exists another permutation class: https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/backtracking/Permutation.java |
|
Hey @DenizAltunkapan, I wasn’t aware that a permutation implementation already existed under the backtracking package, as the issue specifically referenced the recursion package, where no such file was present. Based on that, I proceeded with adding a new implementation there. Additionally, I introduced handling for duplicate elements to ensure that only unique permutations are generated. This behavior was not present in the existing backtracking/Permutation.java implementation. Please let me know if you’d prefer aligning this with the existing implementation or consolidating the changes. |
Issue #7322
clang-format -i --style=file path/to/your/file.java